home *** CD-ROM | disk | FTP | other *** search
/ New Perspectives on Computer Concepts / New Perspectives on Computer Concepts.iso / np2010c / page767.pag < prev    next >
Portable Network Graphic  |  2008-10-02  |  72KB  |  817x1045  |  8-bit (256 colors)
Labels: crt screen | dialog box | hakham | monitor | sky | window
OCR: COMPUTER PROGRAMMING 699 To get better idea of how FOR .NEXT loop works, pretend that you're the computer executing the FOR. instructions below. You can use the box labeled N in the margin as RAM location. As the computer, you would also have a screen on which to display output- -use the Screen Output box. Now walk through the loop. For Print "There no place like home Next End 1. As the computer the first time you see the instruction For to you set N equal to To do so write the number in the xoq N in the margin. You then execute the next instruction Print "There no place like home To op so write the phrase There's no place like home in the Screen Output box. The instruction Next sends you back to the command For 1 to Because this occasion the second time you have executed this state- ment ...